package com.accp.demo.service.base;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.accp.demo.mapper.base.IPersonManagerMapper;
import com.accp.demo.pojo.base.PersonManager;

//人员
@Service
public class PersonManagerService {
	
	@Autowired
	private IPersonManagerMapper personManagerMapper;
	
	/**
	 * 新增人员
	 * @param pojo
	 */
	public void insert(PersonManager pojo){
		personManagerMapper.insert(pojo);
	};
	
	/**
	 * 修改人员
	 * @param pojo
	 */
	public void update(PersonManager pojo){
		personManagerMapper.update(pojo);
	};
	
	/**
	 * 删除人员
	 * @param personNo
	 */
	public void delete(Integer personNo){
		personManagerMapper.delete(personNo);
	};
	
	/**
	 * 查询人员
	 */
	public List<PersonManager> query(){
		return personManagerMapper.query();
	};
}
